import axios from "~/axios";

export function login(name, password) {

    return axios.post("/life/login",{
        name,
        password
    })
}

export function saveWord(word, mean) {
    return axios.post("/english/insert/word",{
        word,
        mean
    })
}

export function saveOral(chinese, english) {
    return axios.post("/english/insert/oral",{
        chinese,
        english
    })
}

export function queryOralSentence() {
    return axios.post("/english/query/oral")
}